//
//  MHMyClientDetailController.m
//  M-Saler
//
//  Created by Teresa on 2020/6/10.
//  Copyright © 2020 Teresa. All rights reserved.
//

#import "MHMyClientDetailController.h"

@interface MHMyClientDetailController ()

@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UILabel *telLabel;
@property (weak, nonatomic) IBOutlet UILabel *addrLabel;
@property (weak, nonatomic) IBOutlet UILabel *provinceLabel;
@property (weak, nonatomic) IBOutlet UILabel *cityLabel;
@property (weak, nonatomic) IBOutlet UILabel *codeLabel;
@property (weak, nonatomic) IBOutlet UILabel *taxLabel;
@property (weak, nonatomic) IBOutlet UILabel *emailLabel;
@property (weak, nonatomic) IBOutlet UILabel *wechatLabel;
@property (weak, nonatomic) IBOutlet UILabel *companyLabel;
@property (weak, nonatomic) IBOutlet UILabel *taxTypeLabel;

@end

@implementation MHMyClientDetailController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self configNavBarWhite];
    self.title = @"客户管理";
    self.nameLabel.text = self.model.name;
    self.telLabel.text = self.model.phone;
    self.addrLabel.text = self.model.address;
    self.provinceLabel.text = self.model.province;
    self.cityLabel.text = self.model.city_name;
    self.codeLabel.text = self.model.postcode;
    self.emailLabel.text = self.model.email;
    self.wechatLabel.text = self.model.wechat;
    self.companyLabel.text = self.model.company;
    self.taxTypeLabel.text = self.model.duty_type == 1 ? @"公司":@"个人";
    self.taxLabel.text = self.model.duty_num;
    self.tableView.tableFooterView = [UIView new];
}

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}

@end
